package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

@RestController
public class GreetController {

    @GetMapping("greeting")
    public Flux<String> greeting1(){
        return Flux.just("Hello world  Just");
    }

    @GetMapping("greetingMono")
    public Mono<String> greeting2(){
        return Mono.just("Hello world Mono");
    }
}
